<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
	<%@include file="/include/header.html" %>
	<script type="text/javascript" src="${ctx}/appjs/tenant/menu/tenantMenu.js"></script>
</head>

<script type="text/javascript">
	$('#topLink', window.parent.document).html(function (i, origText) {
		return '<ol class="breadcrumb">' +
				'<li class="breadcrumb-item">' +
				'<a href="">主页</a>' +
				'</li>' +
				'<li class="breadcrumb-item">' +
				'<a>运营端管理</a>' +
				'</li>' +
				'<li class="breadcrumb-item">' +
				'<strong>运营商菜单设置</strong>' +
				'</li>' +
				'<li class="breadcrumb-item">' +
				'<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
				'</li>' +
				'</ol>';
	});
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<div class="columns pull-left">
						<h5><strong>添加资料</strong></h5>
					</div>
					<div class="ibox-tools">
						<a class="close-link">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="frmMenu">
						<input id="parentId" name="parentId" type="hidden" value="${parentId}">
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">上级菜单：</label>
							<div class="col-sm-8">
								<input id="" name="" class="form-control" type="text"
									   value="${parentName}" readonly>
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">菜单类型：</label>
							<div class="col-sm-8">
								<label class="radio-inline">
									<input type="radio" name="menuType" value="0"/> 目录
								</label>
								<label class="radio-inline">
									<input type="radio" name="menuType" value="1"/> 菜单
								</label>
								<label class="radio-inline">
									<input type="radio" name="menuType" value="2"/> 功能
								</label>
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">只适合用户:</label>
							<div class="col-sm-8">
								<label class="radio-inline">
									<input type="radio" name="userType" value="0"/>运营商
								</label>
								<label class="radio-inline">
									<input type="radio" name="userType" value="1"/>分销商
								</label>
								<label class="radio-inline">
									<input type="radio" name="userType" value="2"/>企业帐户
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 col-form-label text-right">菜单名称：</label>
							<div class="col-sm-8">
								<input id="menuName" name="menuName" class="form-control" type="text" required>
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">说明：</label>
							<div class="col-sm-8">
								<input id="remarks" name="remarks" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">URL：</label>
							<div class="col-sm-8">
								<input id="href" name="href" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">权限码：</label>
							<div class="col-sm-8">
								<input id="permission" name="permission" class="form-control" type="text">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">状态:</label>
							<div class="col-sm-8">
								<label class="radio-inline"> <input type="radio"
																	name="status" value="0" checked/> 显示
								</label> <label class="radio-inline"> <input type="radio"
																			 name="status" value="1"/> 隐藏
							</label>
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">排序号：</label>
							<div class="col-sm-8">
								<input id="sort" name="sort" class="form-control"
									   type="text">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-form-label text-right">图标：</label>
							<div class="col-md-6">
								<input id="icon" name="icon" class="form-control" type="text"
									   placeholder="例如：fa fa-circle-o">
							</div>
							<div class="col-md-3">
								<input id="ico-btn" class="btn btn-warning" type="button" value="选择图标">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-3 col-sm-offset-8 text-right">
								<button type="submit" class="btn btn-success">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	addTenantMenu.init();
</script>
</body>

</html>

